fix: stabilize docs main CI#320
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 197fd78cec
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if (await topUpButton.isVisible()) { | ||
| await topUpButton.click() | ||
| } | ||
|
|
||
| await expect(sendButton).toBeVisible({ timeout: 120000 }) | ||
| await sendButton.click() | ||
|
|
||
| await expect(authorizeTargetButton).toBeVisible({ timeout: 120000 }) | ||
| await authorizeTargetButton.click() | ||
|
|
||
| await expect(page.getByRole('link', { name: 'View receipt' }).first()).toBeVisible({ |
There was a problem hiding this comment.
Trigger routed send before checking receipt
This test can now pass without performing the cross-zone send: after optional top-up, it immediately asserts a generic View receipt link and a step title that is rendered regardless of submission state, but it never clicks Send 25 pathUSD into Zone B or authorizes Zone B reads. That means CI no longer verifies the core routed-send path and can miss regressions in the actual transfer flow.
Useful? React with 👍 / 👎.
| if (await topUpButton.isVisible()) await topUpButton.click() | ||
| await expect(sendButton).toBeVisible({ timeout: 120000 }) | ||
|
|
||
| await sendButton.click() | ||
|
|
||
| await expect(page.getByRole('link', { name: 'View receipt' }).first()).toBeVisible({ | ||
| timeout: 120000, |
There was a problem hiding this comment.
Submit intra-zone transfer before asserting completion
The test no longer executes the send action (Send 25 pathUSD) and instead stops after top-up when any View receipt appears; in this page that receipt can come from the top-up step, so the test passes even if token transfer within Zone A is broken. This removes coverage of the primary behavior described by the test name.
Useful? React with 👍 / 👎.
| if (await topUpButton.isVisible()) { | ||
| await topUpButton.click() | ||
| } | ||
|
|
||
| await expect(swapButton).toBeVisible({ timeout: 120000 }) | ||
| await swapButton.click() | ||
|
|
||
| await expect(authorizeTargetButton).toBeVisible({ timeout: 120000 }) | ||
| await authorizeTargetButton.click() | ||
|
|
||
| await expect(page.getByRole('link', { name: 'View receipt' }).first()).toBeVisible({ |
There was a problem hiding this comment.
Execute routed swap before validating receipt visibility
After the top-up branch, this test immediately waits for View receipt but never clicks Swap 25 pathUSD into Zone B betaUSD or validates Zone B authorization/balance confirmation. Because View receipt can be satisfied by earlier steps, the swap flow itself is no longer exercised, so CI can report green while routed swaps are failing.
Useful? React with 👍 / 👎.
| if (await topUpButton.isVisible()) { | ||
| await topUpButton.click() | ||
| } | ||
|
|
||
| await expect(withdrawButton).toBeVisible({ timeout: 90000 }) | ||
|
|
||
| await withdrawButton.click() | ||
|
|
||
| await expect( | ||
| page | ||
| .locator('div[data-completed="true"]', { | ||
| has: page.getByText('Wait for pathUSD to settle back to your public balance.'), | ||
| }) | ||
| .first(), | ||
| ).toBeVisible({ | ||
| await expect(page.getByRole('link', { name: 'View receipt' }).first()).toBeVisible({ |
There was a problem hiding this comment.
Perform withdrawal action before asserting success signals
This test now stops after top-up and only checks for View receipt plus the withdrawal step title, but it never clicks the withdrawal submit button. Since the title is visible even before execution and receipts may come from top-up, the test can pass while Withdraw 100 pathUSD is broken, which weakens CI coverage for the withdrawal path.
Useful? React with 👍 / 👎.
Summary
StaticMermaidDiagramVerification